<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>订单确认 - <?php echo $cfg_webname; ?></title>
<link href="templets/style/css/reset.css" rel="stylesheet" type="text/css">
<link href="templets/style/css/member.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="templets/js/j.js"></script>
<script type="text/javascript" src="templets/js/load.js"></script>
<script type="text/javascript" src="templets/js/leftmenu.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("form").submit(function(e){
    $("#sub").attr("disabled", "disabled");
  });
});
</script>
</head>
<body>
<!--head-->
<?php include(DEDEMEMBER. "/templets/head.htm"); ?>

<div class="main">

<?php include(DEDEMEMBER."/templets/menu.php"); ?> 
<script>
	$(function(){
		var ids = $('#2');
		var span  = ids.find('.icons');
		var name = span.attr('class');
		var newName = name.replace(/(\S+)$/,'$1_h');
		span.addClass(newName);
		span.parent('a').addClass('cur');
	})
</script>
<div class="main_right">

<div class="common_title">模板定制</div>

<form method="post" name="E_FORM" action="buy_action_mb.php">
            <input type="hidden" name="pd_encode" value="<?php echo $pr_encode;?>">
            <input type="hidden" name="pd_verify" value="<?php echo $pr_verify;?>">
            <input type="hidden" name="aid" value="<?php echo $buyid;?>">
            <input type="hidden" name="money" value="<?php echo $price;?>">
<div class="ddqr">
<div class="appMsg"><p class="tips">* 你购买的产品如下，确认无误后请点击“立即支付”按钮，进行网上支付，如果支付失败，请与管理员联系其它支付方式：</p></div>
<p>
订单编号：<?php echo $buyid?><br/>

产品类型：<?php echo $ptype?>(<font color='red'>预付款</font>)<br/>
产品名称：<?php echo $pname?><br/>
产品价格：<?php echo $price;?>元
</p>
<h6>选择支付方式：</h6>
<div class="zffs">
<ul class="zffs_title">
<li><input name="paytype" type="radio" value="3" checked="checked"/><div><img src="templets/images/pay/zfb.jpg"><span></span></div></li>
<?php if($mid>0){?>
<li><input name="paytype" type="radio"  value="1" checked="checked" /><div><img src="templets/images/pay/xbpay.jpg"><span></span></div></li>
<?php } ?>
</ul>
<ul class="zffs_con">
<li>
<div class="zfbzf">
<input type="submit" name="imageField" class="hysj_button" value="立即支付">
</div>
</li>
</form>
<li>
<div class="wxzf">
<img src="templets/images/pay/wxzf_ewm.jpg" class="wxzf_ewm">
<img src="templets/images/pay/wxzf_zs.jpg" class="wxzf_zs">
</div>
</li>
</ul>
</div>
</div>

</div>

</div>

<!--footer-->
<?php include(DEDEMEMBER. "/templets/footer.htm"); ?>

<script>
	//订单确认
	var lis = document.querySelectorAll('.zffs_title li');
	var radios = document.querySelectorAll('input[name=zffs]');
	var zffs_cons = document.querySelectorAll('.zffs_con li');
	for(var i=0,len=lis.length;i<len;i++){
		lis[i].index = i;
		lis[i].onclick = liCLickHandler;
	}
	function liCLickHandler(e){
		for(var i=0,len=lis.length;i<len;i++){
			lis[i].className = '';
			radios[i].checked = false;
			zffs_cons[i].style.display = 'none';
		}
		this.className = 'cur';
		radios[this.index].checked = true;
		zffs_cons[this.index].style.display = 'block';
	}
	lis[0].onclick();
</script>
<script>
	//左边导航
	var as = document.querySelectorAll('.left_menu a');
	var spans = document.querySelectorAll('.left_menu .icons');
	for(var i=0,len=as.length;i<len;i++){
		
		spans[i].clazz = spans[i].className;
		as[i].index = i;
		as[i].onmouseenter = mouseenterHandler;
		as[i].onmouseleave = mouseleaseHandler;
	}
	function mouseleaseHandler(e){
		spans[this.index].className = spans[this.index].clazz;
	}
	
	//左右等高布局
	var main_left = document.querySelector('.main_left');
	var main_right = document.querySelector('.main_right');
	if(main_left.offsetHeight<main_right.offsetHeight){
		main_left.style.height = main_right.offsetHeight + 'px';
	}
</script>

</body>
</html>